Skip to content

fix(menu): menus stay under the menu bar, take a three-quarter cap and show a more-below hint (0.67.0) - #20

Merged
nodemode-ai merged 4 commits into
mainfrom
fix/menu-under-bar-0.67.0
Nov 30, 2026
Merged

nodemode-ai merged 4 commits into
mainfrom
fix/menu-under-bar-0.67.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Collaborator

fix(menu): menus stay under the menu bar, take a three-quarter cap and show a more-below hint (0.67.0)

Summary

  • Menu bar menus no longer cover the bar. The bar opened its menus with openAt, the routine for menus opened at a point: a menu taller than the room under the bar was flipped above its button and clamped to 4 px from the window top. Bar menus now open with openUnder: the top is the button's bottom plus 4 and never moves up, and the panel takes an inline max-height of the smaller of 75% of the window and the room to its bottom, set while it is hidden and before it is measured. The rest scrolls.
  • Submenus (openBeside) take the root menu's floor and the same cap before measuring, and are never placed above the floor.
  • New: a cut-off menu shows a fade and a small 56 by 12 pill with a down chevron at its bottom while rows remain below. The card now holds a scrolling .fs-menu-list that carries the mask; has-more on the card drives the fade (out in 160 ms at the last row, back in 490 ms, none under reduced motion). A menu opens with the hint already in place (no-fade while it is placed); a menu that fits shows nothing. Rows and scrollTop now live on the list; max-height stays on the card.
  • Menus opened at a point (the workbench's Open, page layout and workspace menus) clamped their top to 4 px from the window top with only the stylesheet's calc(100vh - 8px) as a cap. They now take the bar's bottom edge plus 4 as their floor (the window top when the bar has no height), the same 75% cap, keep opening at their point or flipped above or left of it, and show the hint.
  • No colour, glass, blur or spacing changed; the pill uses the app's own --glass-bg and --glass-border tokens. No new z-index. The macOS system menu code is untouched. Rationale and removed lines are in frontend/HASHOUT_LOG.md entries 139 to 141.

Commits

  • fix(menu): menu bar menus and their submenus stay under the bar, at most three quarters of the window tall (0.67.0)
  • feat(menu): a cut-off menu shows a fade and a small pill at its bottom while rows remain below (0.67.0)
  • fix(menu): menus opened at a point keep under the menu bar, take the same cap and show the hint (0.67.0)
  • chore(release): 0.67.0 (0.67.0)

Version

v0.67.0 (release commit is last). Minor bump from 0.66.0. Bumped: frontend and demo package.json and package-lock.json (both own fields each), frontend/src/version.ts, backend/app/init.py, src-tauri/Cargo.toml, the formpdf entry in src-tauri/Cargo.lock, src-tauri/tauri.conf.json (formcompiler's version file), the README badge, and the version field of the two skill SKILL.md files and their mirrors. The committed demos (demo/, demos/protect/, demos/sign/) are rebuilt with their own builds and carry the new menu styles; demos/sign had not been rebuilt since 0.60.0, so sign.js also picks up the window source changes since then. The repo has no CHANGELOG.

Checks

  • Frontend npm run build (tsc --noEmit and vite build): exit 0, tsc clean, on the three menu commits before the version bump (the built bundle holds the new floor code).
  • Demo rebuilds: npm run build in demo/ and vite build --config ./vite.config.mjs in demos/protect and demos/sign: all exit 0.
  • backend/tests/test_f4_versions.py: 3 passed. The CI em dash and emoji check over tracked files: clean.
  • Browser measurement with a menu probe in headless Chrome on the built window, CPU slowed 4 times. At 1280x800 and 1000x480 every bar menu (File, Edit, View, Tools, Extensions, Window, Help) opened with its top at 40 against a bar bottom of 35.5, the lowest top seen in any frame while opening was 40, height at most 75% of the window (Window 600 of 600 at 1280x800; View, Tools and Window 360 of 360 at 1000x480), bottom inside the window. The hint was on with the pill at full opacity for every cut-off menu and off at the last row (scrollTop 36, 169, 117, 276), and off for every menu that fits.
  • Point-anchored menus measured the same way at 1280x800, 1000x480 and 800x320: a six-row point-anchored menu from the workbench opened at top 42 at all three sizes (lowest frame 42; bar bottom 35.5), 177 high, inside the window, no hint as it fits; the 18-row All tools menu at 1280x800 opened at top 78, 503 high of a 600 cap, no hint. The probe could not open All tools at the two smaller sizes, nor a third point menu.

Not run: a before measurement on origin/main; the full four-size matrix from the guide (only the sizes above); the hint fade timings; End, Home and other keyboard checks; the demos opened from file://; the window smoke test pytest frontend/tests/window (it needs the Python engine installed); the rest of the backend tests; the desktop shell build. A right-click context menu on the page was not opened by the probe. The type check was not re-run after the version bump (only version strings changed). DOM law: verified under 4x CPU throttling for the bar menus and the point-anchored menus above (no frame with the menu above its final top); network throttling not applied.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash.

…ost three quarters of the window tall (0.67.0)

The menu bar opened its menus with openAt, the routine for menus opened at
a point. A menu taller than the room under the bar was flipped above its
button and clamped to 4 pixels from the window top, so it covered the bar;
submenus clamped to the window top the same way.

Bar menus now open with openUnder: the top is the button's bottom plus 4
and never moves up, and an inline max-height of the smaller of 75% of the
window and the room to its bottom is set while the panel is hidden, before
it is measured. The rest scrolls. openBeside takes the root menu's floor
and the same cap before measuring and never places a submenu above it.
Frontend HASHOUT 139.
…m while rows remain below (0.67.0)

The menu card no longer scrolls: it holds a list that scrolls and carries
the mask, so the bottom rows fade into the card's own glass, and a 56 by 12
pill with a down chevron sits over the fade. has-more is set on the card
while rows remain below; at the last row both fade out in 160 ms and come
back over 490 ms, with no fade under reduced motion. A menu opens with the
hint already in place (no-fade while it is placed), and a menu that fits
shows nothing. Rows and scrollTop now live on the list; max-height stays
on the card. Frontend HASHOUT 140.
…same cap and show the hint (0.67.0)

openAt, used by the workbench's Open, page layout and workspace menus,
clamped a menu's top to 4 pixels from the window top with only the
stylesheet's calc(100vh - 8px) as a cap, so a long one could cover the
menu bar. It now takes the bar's bottom edge plus 4 as its floor (the
window top when the bar has no height), sets the same 75% cap before it
measures, keeps opening at its point or flipped above or left of it, and
shows the more-below hint. Its submenus take the same floor and cap.
Frontend HASHOUT 141.
Bumps every version site from 0.66.0 to 0.67.0, the same set as 0.66.0:
frontend and demo package.json and package-lock.json (both own fields
each), version.ts, backend __version__, src-tauri Cargo.toml, the formpdf
entry in Cargo.lock, tauri.conf.json, the README badge, and the version
field in the two skill SKILL.md files and their mirrors in the
agents skills folder. Minor bump: the more-below hint is a new feature.

The three committed demos are rebuilt with their own builds so they carry
the new menu styles and this version: demo (npm run build), demos/protect
and demos/sign (vite build --config ./vite.config.mjs). protect.js now
takes its version from the build instead of a hand edit. sign.js had not
been rebuilt since 0.60.0, so it also picks up the source changes made
since then. The demos do not open the menu code itself, only its styles.
The repo has no CHANGELOG.
@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 30, 2026 22:01
@nodemode-ai
nodemode-ai merged commit b3e29f6 into main Nov 30, 2026
5 checks passed
@nodemode-ai
nodemode-ai deleted the fix/menu-under-bar-0.67.0 branch November 30, 2026 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant